Consequently, if ( x= 7) is already a compile-time error, so there's no reason to use the unnatural form if ( 7== x) for comparison statements, and fluent Java programmers don't. 因而,if(x=7)已经成为编译时错误,就没有必要为比较语句使用不自然的形式if(7==x),流畅的Java程序员不会这样做。
In a compiled language, such as the Java language, if you try to call a method that doesn't exist or reference a member variable that doesn't exist, you get a compile-time error. 在编译语言(例如Java)中,如果想调用不存在的方法或引用不存在的成员变量,会得到编译时错误。
This incompatibility between platforms is particularly dangerous as it might cause programs to return wrong results rather than causing a compile-time error. 不同平台之间的不兼容性尤其危险,因为它可能会导致程序返回错误结果,而不是编译时错误。
Putting the literal on the left-hand side makes this a compile-time error. 若将文字置于左侧,这样的错误就会成为编译时错误。
Comparing tuples of unequal lengths results in a compile-time error. 比较不同长度的元组会产生编译时错误。
You will have a compile-time error something like: "The nested type Person cannot hide an enclosing type". 否则将会导致一个编译时间错误,如“该嵌套类型Person无法隐藏封闭类型”。
So if you misspelled "secret" in the above example, or tried to call a method on it that did not exist, you would get a compile-time error. 因此如果在上例中拼错了“secret”,或尝试调用根本不存在的方法,那么将出现编译时错误。
It is a compile-time error to pass actual type parameters to a non-static type member of a raw type that is not inherited from its superclasses or superinterfaces. 给没有从其超类或者超接口继承的原始类型的非静态类型成员传递实际类型参数会导致编译时错误。
It is a compile-time error to attempt to use a type member of a parameterized type as a raw type. 试图把一个参数化类型的类型成员作为一个原始类型,将会产生一个编译时错误。
X= 2;# Use of$ x here is a compile-time error as usual $x=2;这里使用$x通常引起编译时错误